#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
int main()
{
    int a, b, n;
    printf("size:");
    scanf("%d", &n);
    while (n > 0)
    {
        for (int i = 1; i <= n; i++)
        {
            for (int q = 1; q <= i - 1; q++)
                printf(" ");
            for (int p = 1; p <= n - i + 1; p++)
                printf("*");
            printf("\n");
        }
        for (int r = 1; r <= n - 1; r++)
        {
            for (int l = 1; l <= n - 1; l++)
                printf(" ");
            for (int m = 1; m <= r + 1; m++)
                printf("*");
            printf("\n");
        }
        printf("size:");
        scanf("%d", &n);
    }
    printf("Bye!");
    return 0;
}